/*jslint maxerr: 50, indent: 4, browser: true */
/*global define */

define("modulesToBuri", [], function () {
    "use strict";

    function modulesToBuri(modules) {
        var length = modules.length,
            i = 0,
            merged = {},
            module,
            prop;

        while (i < length) {
            module = modules[i];
            for (prop in module) {
                if (module.hasOwnProperty(prop)) {
                    merged[prop] = module[prop];
                }
            }

            i += 1;
        }

        return merged;
    }

    return {
        "modulesToBuri": modulesToBuri
    };
});
